package com.geeguo.ebuilder.operation.business.tenant.datasourceinfo.model;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.geeguo.ebuilder.core.common.model.converter.DateLongMapper;

@Mapper(uses = DateLongMapper.class)
public interface DataSourceInfoConverter {
    
    DataSourceInfoConverter INSTANCE = Mappers.getMapper(DataSourceInfoConverter.class);
    
    DataSourceInfoCO convert2CO(DataSourceInfoEntity entity);
    
    DataSourceInfoVO convert2VO(DataSourceInfoCO co);
    DataSourceInfoVO convert2VO(DataSourceInfoEntity entity);
    
    DataSourceInfoEntity convert2Entity(DataSourceInfoVO vo);
    DataSourceInfoEntity convert2Entity(DataSourceInfoCreateDTO dto);
    DataSourceInfoEntity convert2Entity(DataSourceInfoUpdateDTO dto);
}

